package com.hucheng.consumer.movie.feign;

import com.hucheng.consumer.movie.pojo.User;
import org.springframework.stereotype.Component;

/**
 * @Author: 胡成
 * @Version: 0.0.1V
 * @Date: 2019-05-29
 * @Description: Feign熔断处理
 **/
@Component
public class FeignClientFallback implements UserFeignClient{

    @Override
    public User findById(Long id) {
        User user = new User();
        user.setId(-1L);
        user.setName("默认用户");
        return user;
    }
}
